<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>差值语法</title>
		<script src="js/vue.min.js"></script>
	</head>
	<body>
		<div id="container">
			<img v-bind:src="imgurl" />
			用户名：<input type="text" /><span v-html="info"> </span><br>
			点击add添加：{{num}}<input type="button" value="add" v-on:click="num++" /><input type="button" value="del"
				v-on:click="num--" />
		</div>

		<script type="text/javascript">
			var app = new Vue({
				el: "#container",
				data: {
					info: "<font color='red'>用户名不能为空</font>",
					imgurl: "images/1.png",
					num: 1
				}
			})
		</script>
	</body>
</html>
